/*
 * Copyright (C) 2020 The LINN Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
package com.juqimiao.linn.transfer.query;

import java.io.Serializable;

/**
 * 表示一个搜索条件的类。它是所有具体搜索条件的接口类。
 *
 * 通常代表一个独立在SQL语句或ES检索中的一个独立搜索条件。
 * <p>
 * 它可能代表SQL中 WHERE 语句中的
 * 1. columnName = 'value'
 * 2. AGE >= 20 AND AGE <= 30
 * 3. FULLNAME = %value [_value] [_value_] ...
 *
 * 它也可能代表在ES检索中的：
 * {
 *  "query": {
 *     name: value
 *  }
 * }
 *
 * {
 *   "query": {
 *       "range":{
 *           "gte": 25,
 *           "lte": 30
 *       }
 *   }
 * }
 *
 * {
 *     "query": {
 *         "regexp":{
 *             "name.first":{
 *                 "value":"s.*y",
 *                 "boost":1.2
 *             }
 *         }
 *     }
 * }
 *
 * {
 *     "query": {
 *         "wildcard" : { "user" : { "value" : "ki*y", "boost" : 2.0 } }
 *     }
 * }
 *</p>
 *
 * @author      Collin Cai
 */
public interface CriteriaI extends Serializable {

}
